var o = getApp();

Page({
    data: {
        emojis: [],
        serverName: "https://files.ishare20.net/emojipics/",
        ad: {}
    },
    showpics: function(o) {
        console.log(o);
    },
    onLoad: function(i) {
        this.setData({
            dir: i.dir,
            emojis: JSON.parse(i.files),
            ad: o.globalData.ad
        });
    },
    goToPreview: function(o) {
        wx.navigateTo({
            url: "/pages/gifmaker/showGif?gifUrl=" + o.target.dataset.url
        });
    },
    adLoad: function() {
        console.log("Grid 广告加载成功");
    },
    adError: function(o) {
        console.log("Grid 广告加载失败", o);
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: "表情包大全",
            path: "pages/emojiList/emojicls/emojicls?dir=" + this.data.dir + "&files=" + JSON.stringify(this.data.emojis)
        };
    }
});